package exercise2_5;

public class Intern extends Researcher {

	/// Interns are all bachelor students
	BachelorStudent student;
	
	
	public Intern(BachelorStudent bachelorstudent, int salary)
	{	
		super(salary);
		this.student= bachelorstudent;
	}
	
	// An intern wants to publish the work he has done in his bachelor, 
	//he can't publish it without being supervised with a supervisor
	public String publishPaper(String paperName)
	{
		return new String ("This intern  has been published "+student.writeThesis(paperName));

	}
}
